package com.woniuxy.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.woniuxy.service.ManagerService;

@Controller
@RequestMapping("/manager")
public class ManagerController {
	@Autowired
	private ManagerService managerService;
	
	@RequestMapping("/list")
	public String getAll(Model model){
		
		model.addAttribute("managers",managerService.getAll());
		return "/test.jsp";
	}
	

}
